import request from "@/utils/request"



// 分配审核人员(选择职务)(职务列表)
export const distribution = (e) => {

  return request({
    method: "POST",
    data: {
      pid: e
    },
    url: "apply/company/distribution",
  });
};
export const person = () => {

  return request({
    method: "POST",
    url: "apply/company/person",
  });
};
//添加员工
export const staffadd = (e) => {
  return request({
    method: "POST",
    data:e,
    url: "apply/staff/staffadd",
    // headers: {
    //   'Content-Type': 'application/x-www-form-urlencoded'
    // },
    // headers:{
    //     "content-type":" boundary=<calculated when request is sent>",
    //     "Content-Lengthg": "678"
    // },
    
  });
};
//   查询列表
export const stafflist = (params) => {

  return request({
    method: "POST",
    url: "apply/staff/stafflist",
    data:params
  });
};
export const staffedit = (params) => {

  return request({
    method: "POST",
    url: "apply/staff/staffedit",
    data:params
  });
};
//   修改员工密码
export const password = () => {

  return request({
    method: "POST",
    url: "apply/staff/password",
  });
};
export const staffdel = (e) => {

  return request({
    method: "POST",
    data: e,
    url: "apply/staff/staffdel",
  });
};
